/**
 * Created by xiongisxiong on 2018/5/5
 */

 // 时间转换 工具 (把秒数转换为时间类型，如:71 -> 01:11)
export const transTime = (time) => {
  const minute = Math.floor(time / 60);
  const second = Math.floor(time % 60);
  return `${minute > 10 ? minute : (`0${minute}`)} :${second > 9 ? second : ('0' + second)}`
}